//express_demo.js 文件
var express = require("express");
var app = express();
const fs = require("fs");
const path = require("path");

app.get("/clock", function (req, res) {
  console.log(req.url);
  let str = "";
  str = fs.readFileSync(path.join(__dirname, "files", "zks.html"), "utf-8");
  res.statusCode = 200;
  res.setHeader("Content-Type", "text/html;charset=utf-8");
  res.end(str);
});

app.listen(8080);
